# $Id: PKGBUILD 78376 2012-10-17 15:46:13Z spupykin $
# Maintainer: Ray Rashif <schiv@archlinux.org>
# Contributor: Corrado 'bardo' Primier <corrado.primier@mail.polimi.it>
# Contributor: cs-cam <me.at.camdaniel.com>

pkgname=wammu
pkgver=0.36
pkgrel=3
pkgdesc="A wxPython-based GUI for Gammu"
arch=('any')
url="http://wammu.eu/"
license=('GPL')
depends=('gammu' 'notification-daemon' 'wxpython')
optdepends=('gnome-bluetooth: bluetooth support'
	    'python2-pybluez: bluetooth support')
source=(http://downloads.sourceforge.net/gammu/$pkgname-$pkgver.tar.bz2)
md5sums=('065186e6d08bffd7f95ae000046904cb')

package() {
  cd "$srcdir/$pkgname-$pkgver"

  # python2 fix
  sed -i 's_/usr/bin/env python_/usr/bin/env python2_' setup.py

  ./setup.py install --root="$pkgdir" --optimize=1
}
